package com.fc.v2.controller.admin;

import com.fc.v2.model.auto.TsysMySearch;
import com.fc.v2.service.MySearchService;
import com.fc.v2.common.base.BaseController;
import com.fc.v2.common.domain.ResultTable;
import com.fc.v2.model.custom.Tablepar;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("/MySearchController")
public class MySearchController extends BaseController {
    @Resource
    private MySearchService mySearchService;

    @GetMapping("/list")
    @ResponseBody
    public ResultTable list(Tablepar tablepar){
        PageInfo<TsysMySearch> page=mySearchService.list(tablepar) ;
        return pageTable(page.getList(),page.getTotal());
    }


}
